package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingLevel;
import com.zzyl.vo.NursingLevelVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface NursingLevelMapper {
    //获取所有护理等级信息
    List<NursingLevelVo> all();

    //添加护理等级信息
    void add(NursingLevel nursingLevel);

    //分页查询护理等级信息
    Page<NursingLevelVo> getByPage(String name, Integer status);

    //根据id查询护理等级信息
    NursingLevelVo getById(Long id);

    //编辑更新护理等级信息 and 启用/禁用护理等级信息
    void update(NursingLevel nursingLevel);

    //根据id删除护理等级信息
    void deleteById(Long id);


    //查询护理等级绑定的护理计划
    List<NursingLevel> seleteById(Long id);
}
